@echo off
if "%JAVA_HOME%"=="" goto error
setlocal
set CLASSPATH=%CLASSPATH%;%CD%\bin;%CD%\lib\commons-cli-2.0-SNAPSHOT.jar;%CD%\lib\commons-codec-1.3.jar;%CD%\lib\commons-httpclient-3.0.1.jar;%CD%\lib\commons-logging-1.0.4.jar;%CD%\lib\commons-logging-api-1.0.4.jar;%CD%\lib\hadoop-0.15.1-core.jar;%CD%\lib\jets3t-0.5.0.jar;%CD%\lib\jetty-5.1.4.jar;%CD%\lib\junit-3.8.1.jar;%CD%\lib\kfs-0.1.jar;%CD%\lib\log4j-1.2.13.jar;%CD%\lib\optimizer-0.0.180.jar;%CD%\lib\optimizer-docs-0.0.180.zip;%CD%\lib\optimizer-src-0.0.180.zip;%CD%\lib\servlet-api.jar;%CD%\lib\xmlenc-0.52.jar
"%JAVA_HOME%\bin\java.exe" -classpath "%CLASSPATH%" org.dyndns.opendemogroup.hadoopoptimizer.DistributedRunDriver %1 %2 %3 %4 %5 %6 %7 %8 %9
goto fin

:error
echo.
echo ERROR:  The environment variable JAVA_HOME is not set!  It must point to JDK 1.5
echo.

:fin
endlocal
